package com.heima.admin.feign;

import com.heima.admin.dto.ArticleDto;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleFeign {

    @PostMapping("/api/v1/article")
    @ApiOperation(value = "保存或者修改App文章", notes = "author:mcm")
    public ResponseResult<Long> saveOrUpdateArticle(@RequestBody ArticleDto dto);
}
